window.onload=function(){
    var wrapper=document.getElementById("wrapper");
    var wrapperWidth=wrapper.offsetWidth;
    var wrapperHeight=wrapperWidth*0.5;
    wrapper.style.height=wrapperHeight+"px";
}
function tablemousedown(id,str){
    document.getElementById(id).style.backgroundImage='url(../resources/pictures/'+str+'ing.png)';
}
function tablemouseup(id,str){
    document.getElementById(id).style.backgroundImage='url(../resources/pictures/'+str+'.png)';
}
function speedchange(){
    document.getElementById("speed2")=document.getElementById("slider").nodeValue;
}

function carback(){
	 $.ajax({
			url : "carback",
			cache : false,
			success : function(result) {
				alert("小车开始后退");
			}
		});
}
function carstop(){
	 $.ajax({
			url : "carstop",
			cache : false,
			success : function(result) {
				alert("小车停止了");
			}
		});
}
function cargo(){
	 $.ajax({
			url : "cargo",
			cache : false,
			success : function(result) {
				alert("小车开始前进");
			}
		});
}
function actionSelect(obj){
	    	if(obj.value=="轨迹扫描"){
	    		$.ajax({
	    			url : "doTrackScanning",
	    			cache : false,
	    			success : function(result) {
	    				alert("轨迹扫描开始！");
	    			}
	    		});
	    		}
	    }
